package soma.rest.resource;

import javax.annotation.Resource;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import soma.rest.model.Message;
import soma.rest.model.Project;
import soma.rest.service.ProjectServcie;

@Component("projectResource")
@Path("project")
public class ProjectResourceImpl {
	
	private Message message;
	@Resource
	private ProjectServcie projectService;

	public void setProjectService(ProjectServcie projectService) {
		this.projectService = projectService;
	}
	
	@GET
	@Produces(MediaType.APPLICATION_JSON)
	public Project getProject() {
		return projectService.getProject();
	}

}
